const router = require("koa-router")();
const ShoesModel = require("../../models/shoesList");
router.get("/api/index",async ctx=>{
    let {m} = ctx.query;
    var res = await ShoesModel((m)).find({});
    ctx.body = {
        code:200,
        res,
        msg:`请求成功!共有数据${res.length}条。`
    }
})
module.exports = router;